> + int main(int argc, char** argv)
> + {
> ++    if (pledge("stdio rpath ioctl", NULL) == -1) {
> ++            fprintf ( stderr, "pdfgrep: pledge\n" );
> ++            exit ( 1 );
> ++    }

This ioctl pledge feels wrong.  I only have a lousy internet connection
and no gcc 4.9 installed, so I can't really test.  The source shows only
a TIOCGWINSZ ioctl, which is covered by pledge "tty" which makes much
more sense to me.

Reply via email to