lockdev/lockdev-1.0.0-signal.patch
cvsdist de2898b600 auto-import changelog data from lockdev-1.0.0-19.src.rpm
Wed Jun 05 2002 Jeff Johnson <jbj@redhat.com> 1.0.0-19
- fix: don't ignore signals, use default behavior instead (#63468).
Thu May 23 2002 Tim Powers <timp@redhat.com>
- automated rebuild
2004-09-09 07:59:43 +00:00

42 lines
1.0 KiB
Diff

--- lockdev-1.0.0/src/baudboy.h Sat Apr 20 15:42:16 2002
+++ lockdev-1.0.0-/src/baudboy.h Sat Apr 20 15:41:49 2002
@@ -34,11 +34,11 @@
#define LOCKDEV_PATH "/usr/sbin/lockdev"
-static inline int doit(const char * argv[])
+static inline int _doit(const char * argv[])
{
pid_t child;
int status;
- void (*osig) (int) = signal(SIGCHLD, SIG_IGN);
+ void (*osig) (int) = signal(SIGCHLD, SIG_DFL);
int rc;
if (!(child = fork())) {
@@ -104,21 +104,21 @@
{
const char * argv[] = { LOCKDEV_PATH, "-l", NULL, NULL};
argv[2] = devname;
- return doit(argv);
+ return _doit(argv);
}
static inline int ttyunlock(const char * devname)
{
const char * argv[] = { LOCKDEV_PATH, "-u", NULL, NULL};
argv[2] = devname;
- return doit(argv);
+ return _doit(argv);
}
static inline int ttylocked(const char * devname)
{
const char * argv[] = { LOCKDEV_PATH, NULL, NULL};
argv[1] = devname;
- return doit(argv);
+ return _doit(argv);
}
static inline int ttywait(const char * devname)