extern Sfextern_t _Sfextern;
extern Sftab_t _Sftable;
- extern int _sfpopen(Sfio_t *, int, int, int);
+ extern int _sfpopen(Sfio_t *, int, int);
extern int _sfpclose(Sfio_t *);
extern int _sfmode(Sfio_t *, int, int);
extern int _sfexcept(Sfio_t *, int, ssize_t, Sfdisc_t *);
* @param f
* @param fd
* @param pid
- * @param stdio stdio popen() does not reset SIGPIPE handler
*/
-int _sfpopen(Sfio_t * f, int fd, int pid, int stdio)
-{
+int _sfpopen(Sfio_t *f, int fd, int pid) {
Sfproc_t *p;
if (f->proc)
p->size = p->ndata = 0;
p->rdata = NULL;
p->file = fd;
- p->sigp = (!stdio && pid >= 0 && (f->flags & SF_WRITE)) ? 1 : 0;
+ p->sigp = (pid >= 0 && (f->flags & SF_WRITE)) ? 1 : 0;
#ifdef SIGPIPE /* protect from broken pipe signal */
if (p->sigp) {
/* initialize side buffer for r+w unseekable streams */
if (!f->proc && (f->bits & SF_BOTH))
- (void) _sfpopen(f, -1, -1, 0);
+ (void) _sfpopen(f, -1, -1);
}
}