Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 791c351

Browse files
committed
Update example to no longer use the FCNTL module.
1 parent 1d53199 commit 791c351

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/lib/libsignal.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ \subsection{Example}
155155
sent, and the handler raises an exception.
156156

157157
\begin{verbatim}
158-
import signal, os, FCNTL
158+
import signal, os
159159
160160
def handler(signum, frame):
161161
print 'Signal handler called with signal', signum
@@ -166,7 +166,7 @@ \subsection{Example}
166166
signal.alarm(5)
167167
168168
# This open() may hang indefinitely
169-
fd = os.open('/dev/ttyS0', FCNTL.O_RDWR)
169+
fd = os.open('/dev/ttyS0', os.O_RDWR)
170170
171171
signal.alarm(0) # Disable the alarm
172172
\end{verbatim}

0 commit comments

Comments
 (0)