Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d53199 commit 791c351Copy full SHA for 791c351
1 file changed
Doc/lib/libsignal.tex
@@ -155,7 +155,7 @@ \subsection{Example}
155
sent, and the handler raises an exception.
156
157
\begin{verbatim}
158
-import signal, os, FCNTL
+import signal, os
159
160
def handler(signum, frame):
161
print 'Signal handler called with signal', signum
@@ -166,7 +166,7 @@ \subsection{Example}
166
signal.alarm(5)
167
168
# This open() may hang indefinitely
169
-fd = os.open('/dev/ttyS0', FCNTL.O_RDWR)
+fd = os.open('/dev/ttyS0', os.O_RDWR)
170
171
signal.alarm(0) # Disable the alarm
172
\end{verbatim}
0 commit comments