File tree Expand file tree Collapse file tree 2 files changed +2
-30
lines changed Expand file tree Collapse file tree 2 files changed +2
-30
lines changed Original file line number Diff line number Diff line change 9
9
*
10
10
*
11
11
* IDENTIFICATION
12
- * $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.c,v 1.25 2006/03/05 15:59:10 momjian Exp $
12
+ * $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.c,v 1.26 2006/05/30 15:57:56 tgl Exp $
13
13
*
14
14
* NOTES
15
15
* This shouldn't be in libpq, but the monitor and some other
@@ -44,29 +44,3 @@ pqsignal(int signo, pqsigfunc func)
44
44
return oact .sa_handler ;
45
45
#endif /* !HAVE_POSIX_SIGNALS */
46
46
}
47
-
48
- pqsigfunc
49
- pqsignalinquire (int signo )
50
- {
51
- #ifndef WIN32
52
- #if !defined(HAVE_POSIX_SIGNALS )
53
- pqsigfunc old_sigfunc ;
54
- int old_sigmask ;
55
-
56
- /* Prevent signal handler calls during test */
57
- old_sigmask = sigblock (sigmask (signo ));
58
- old_sigfunc = signal (signo , SIG_DFL );
59
- signal (signo , old_sigfunc );
60
- sigblock (old_sigmask );
61
- return old_sigfunc ;
62
- #else
63
- struct sigaction oact ;
64
-
65
- if (sigaction (signo , NULL , & oact ) < 0 )
66
- return SIG_ERR ;
67
- return oact .sa_handler ;
68
- #endif /* !HAVE_POSIX_SIGNALS */
69
- #else
70
- return SIG_DFL ;
71
- #endif
72
- }
Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.h,v 1.20 2006/03/05 15:59:10 momjian Exp $
10
+ * $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.h,v 1.21 2006/05/30 15:57:56 tgl Exp $
11
11
*
12
12
* NOTES
13
13
* This shouldn't be in libpq, but the monitor and some other
@@ -24,6 +24,4 @@ typedef void (*pqsigfunc) (int);
24
24
25
25
extern pqsigfunc pqsignal (int signo , pqsigfunc func );
26
26
27
- extern pqsigfunc pqsignalinquire (int signo );
28
-
29
27
#endif /* PQSIGNAL_H */
You can’t perform that action at this time.
0 commit comments