mirror of
https://git.busybox.net/uClibc
synced 2025-05-09 07:11:58 +08:00
spawn: do not require C99 style
Simple style tweak to build with older standards. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
54935c23e9
commit
d8b4e7a80c
@ -42,8 +42,9 @@ inline static bool execute_file_actions(const posix_spawn_file_actions_t *fa)
|
|||||||
{
|
{
|
||||||
struct rlimit64 fdlimit;
|
struct rlimit64 fdlimit;
|
||||||
bool have_fdlimit = false;
|
bool have_fdlimit = false;
|
||||||
|
int cnt;
|
||||||
|
|
||||||
for (int cnt = 0; cnt < fa->__used; ++cnt) {
|
for (cnt = 0; cnt < fa->__used; ++cnt) {
|
||||||
struct __spawn_action *action = &fa->__actions[cnt];
|
struct __spawn_action *action = &fa->__actions[cnt];
|
||||||
|
|
||||||
switch (action->tag) {
|
switch (action->tag) {
|
||||||
@ -143,11 +144,12 @@ __spawni(pid_t *pid, const char *file,
|
|||||||
the sigset_t data type can be very different on different
|
the sigset_t data type can be very different on different
|
||||||
architectures. */
|
architectures. */
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
|
int sig;
|
||||||
|
|
||||||
memset(&sa, 0, sizeof(sa));
|
memset(&sa, 0, sizeof(sa));
|
||||||
sa.sa_handler = SIG_DFL;
|
sa.sa_handler = SIG_DFL;
|
||||||
|
|
||||||
for (int sig = 1; sig <= _NSIG; ++sig) {
|
for (sig = 1; sig <= _NSIG; ++sig) {
|
||||||
if (sigismember(&attrp->__sd, sig)) {
|
if (sigismember(&attrp->__sd, sig)) {
|
||||||
if (sigaction(sig, &sa, NULL) != 0)
|
if (sigaction(sig, &sa, NULL) != 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user