diff options
Diffstat (limited to 'networking/udhcp/files.c')
-rw-r--r-- | networking/udhcp/files.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c index 1f25bb1..cf55a6b 100644 --- a/networking/udhcp/files.c +++ b/networking/udhcp/files.c @@ -167,10 +167,11 @@ void FAST_FUNC write_leases(void) close(fd); if (server_config.notify_file) { -// TODO: vfork-based child creation - char *cmd = xasprintf("%s %s", server_config.notify_file, server_config.lease_file); - system(cmd); - free(cmd); + char *argv[3]; + argv[0] = server_config.notify_file; + argv[1] = server_config.lease_file; + argv[2] = NULL; + spawn_and_wait(argv); } } |