/*
- * Copyright (c) 2008, 2009 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
static void
-sigchld_handler(int signr UNUSED)
+sigchld_handler(int signr OVS_UNUSED)
{
write(signal_fds[1], "", 1);
}
free(e->command_acl);
e->command_acl = xstrdup(acl);
free(e->command_dir);
- e->command_dir = xstrdup(dir);
+ e->command_dir = (dir
+ ? xstrdup(dir)
+ : xasprintf("%s/commands", ovs_pkgdatadir));
}