local.c (6cec9cad762b6476313fb1f8e931a1647822db6b) local.c (e56bad4a94aff7e3e43200568b211de872a52aea)
1/*
1/*
2 * Copyright (c) 2008-2014, Simon Schubert <2@0x2c.org>.
2 * Copyright (c) 2008 The DragonFly Project. All rights reserved.
3 *
4 * This code is derived from software contributed to The DragonFly Project
3 * Copyright (c) 2008 The DragonFly Project. All rights reserved.
4 *
5 * This code is derived from software contributed to The DragonFly Project
5 * by Simon 'corecode' Schubert <corecode@fs.ei.tum.de>.
6 * by Simon Schubert <2@0x2c.org>.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 *
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright

--- 62 unchanged lines hidden (view full) ---

76 if (maxfd == -1)
77 maxfd = 1024; /* what can we do... */
78
79 for (i = 3; i <= maxfd; ++i)
80 close(i);
81
82 execl(LIBEXEC_PATH "/dma-mbox-create", "dma-mbox-create", name, NULL);
83 syslog(LOG_ERR, "cannot execute "LIBEXEC_PATH"/dma-mbox-create: %m");
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 *
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright

--- 62 unchanged lines hidden (view full) ---

77 if (maxfd == -1)
78 maxfd = 1024; /* what can we do... */
79
80 for (i = 3; i <= maxfd; ++i)
81 close(i);
82
83 execl(LIBEXEC_PATH "/dma-mbox-create", "dma-mbox-create", name, NULL);
84 syslog(LOG_ERR, "cannot execute "LIBEXEC_PATH"/dma-mbox-create: %m");
84 exit(1);
85 exit(EX_SOFTWARE);
85
86 default:
87 /* parent */
88 waitchild = waitpid(child, &status, 0);
89
90 e = errno;
91
92 do_timeout(0, 0);

--- 161 unchanged lines hidden ---
86
87 default:
88 /* parent */
89 waitchild = waitpid(child, &status, 0);
90
91 e = errno;
92
93 do_timeout(0, 0);

--- 161 unchanged lines hidden ---