@@ -165,20 +165,19 @@ Below is a list of all ``popen`` functions and handle methods.
165
165
166
166
(if failure) ``nil, err ``
167
167
168
- Possible raised errors are :
168
+ Possible raised errors:
169
169
170
- * IllegalParams: incorrect type or value of a parameter
171
- * IllegalParams: group signal is set, while setsid is not
170
+ * `` IllegalParams `` : incorrect type or value of a parameter
171
+ * `` IllegalParams `` : group signal is set, while setsid is not
172
172
173
- Possible error reasons when ``nil, err `` is returned are :
173
+ Possible error reasons when ``nil, err `` is returned:
174
174
175
- * SystemError: dup(), fcntl(), pipe(), vfork() or close() fails in the
175
+ * `` SystemError `` : dup(), fcntl(), pipe(), vfork() or close() fails in the
176
176
parent process
177
- * SystemError: (temporary restriction) the parent process has closed stdin,
177
+ * `` SystemError `` : (temporary restriction) the parent process has closed stdin,
178
178
stdout or stderr
179
- * OutOfMemory: unable to allocate the handle or a temporary buffer
180
179
181
- Possible ``opts `` items are :
180
+ Possible ``opts `` items:
182
181
183
182
* ``opts.stdin `` (action on STDIN_FILENO)
184
183
* ``opts.stdout `` (action on STDOUT_FILENO)
@@ -397,7 +396,7 @@ Below is a list of all ``popen`` functions and handle methods.
397
396
:ref: `popen.shell() <popen-shell >`
398
397
:param table opts: options
399
398
400
- Possible ``opts `` items are :
399
+ Possible ``opts `` items:
401
400
402
401
* ``opts.stdout `` (boolean, default ``true ``, if ``true `` then read from stdout)
403
402
* ``opts.stderr `` (boolean, default ``false ``, if ``true `` then read from stderr)
@@ -415,19 +414,18 @@ Below is a list of all ``popen`` functions and handle methods.
415
414
416
415
These errors are raised on incorrect parameters or when the fiber is cancelled:
417
416
418
- * IllegalParams: incorrect type or value of a parameter
419
- * IllegalParams: called on a closed handle
420
- * IllegalParams: opts.stdout and opts.stderr are both set
421
- * IllegalParams: a requested IO operation is not supported by
417
+ * `` IllegalParams `` : incorrect type or value of a parameter
418
+ * `` IllegalParams `` : called on a closed handle
419
+ * `` IllegalParams `` : opts.stdout and opts.stderr are both set
420
+ * `` IllegalParams `` : a requested IO operation is not supported by
422
421
the handle (stdout / stderr is not piped)
423
- * IllegalParams: attempt to operate on a closed file descriptor
424
- * FiberIsCancelled: cancelled by external code
422
+ * `` IllegalParams `` : attempt to operate on a closed file descriptor
423
+ * `` FiberIsCancelled `` : cancelled by external code
425
424
426
425
``nil, err `` is returned on following failures:
427
426
428
427
* SocketError: an IO error occurs at read()
429
428
* TimedOut: exceeded the opts.timeout quota
430
- * OutOfMemory: no memory space for a buffer to read into
431
429
* LuajitError: ("not enough memory"): no memory space for the Lua string
432
430
433
431
.. _popen-write :
0 commit comments