22 lines
581 B
Text
22 lines
581 B
Text
$NetBSD: patch-ab,v 1.2 2004/02/08 23:37:13 agc Exp $
|
|
|
|
--- crashme.c 2004/02/08 23:29:34 1.1
|
|
+++ crashme.c 2004/02/08 23:31:28
|
|
@@ -260,7 +260,7 @@
|
|
#else
|
|
struct sigaction act;
|
|
act.sa_handler = func;
|
|
- act.sa_mask = 0;
|
|
+ sigemptyset(&act.sa_mask);
|
|
#ifdef linux
|
|
act.sa_restorer = 0;
|
|
#endif /* linux */
|
|
@@ -591,7 +591,7 @@
|
|
status = fork();
|
|
#endif
|
|
if (status == 0)
|
|
- {status = execl(cmd,cmd,nb,arg2,nt,arg4,arg5,subprocess_ind,0);
|
|
+ {status = execlp(cmd,cmd,nb,arg2,nt,arg4,arg5,subprocess_ind,0);
|
|
if (status == -1)
|
|
{perror(cmd);
|
|
exit(1);}}
|