summaryrefslogtreecommitdiff
authorkergoth <kergoth>2002-09-05 18:56:37 (UTC)
committer kergoth <kergoth>2002-09-05 18:56:37 (UTC)
commit3b604a204719a4b45360a9d8685d4bb51a32b9dd (patch) (unidiff)
treebb47316b888c038a0c07373df93e8b2cc853777a
parent45c33b69ae0eec4868a312dc7eb9f496e10588bd (diff)
downloadopie-3b604a204719a4b45360a9d8685d4bb51a32b9dd.zip
opie-3b604a204719a4b45360a9d8685d4bb51a32b9dd.tar.gz
opie-3b604a204719a4b45360a9d8685d4bb51a32b9dd.tar.bz2
Use SIG_IGN rather than an empty handler to ignore SIG_TSTP.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevice.cpp8
-rw-r--r--libopie/odevice.h2
2 files changed, 1 insertions, 9 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp
index 6572fb6..1da8862 100644
--- a/libopie/odevice.cpp
+++ b/libopie/odevice.cpp
@@ -133,8 +133,2 @@ ODevice::~ODevice ( )
133 133
134
135void ODevice::tstp_sighandler ( int )
136{
137}
138
139
140bool ODevice::suspend ( ) 134bool ODevice::suspend ( )
@@ -151,3 +145,3 @@ bool ODevice::suspend ( )
151 145
152 ::signal ( SIGTSTP, tstp_sighandler );// we don't want to be stopped 146 ::signal ( SIGTSTP, SIG_IGN );// we don't want to be stopped
153 ::gettimeofday ( &tvs, 0 ); 147 ::gettimeofday ( &tvs, 0 );
diff --git a/libopie/odevice.h b/libopie/odevice.h
index cda504a..5009b91 100644
--- a/libopie/odevice.h
+++ b/libopie/odevice.h
@@ -104,4 +104,2 @@ private:
104 ODevice ( const ODevice & ); 104 ODevice ( const ODevice & );
105
106 static void tstp_sighandler ( int );
107}; 105};