=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/patch/patch.c,v retrieving revision 1.61 retrieving revision 1.62 diff -u -r1.61 -r1.62 --- src/usr.bin/patch/patch.c 2015/11/11 02:52:46 1.61 +++ src/usr.bin/patch/patch.c 2015/12/29 19:04:46 1.62 @@ -1,4 +1,4 @@ -/* $OpenBSD: patch.c,v 1.61 2015/11/11 02:52:46 deraadt Exp $ */ +/* $OpenBSD: patch.c,v 1.62 2015/12/29 19:04:46 gsoares Exp $ */ /* * patch - a program to apply diffs to original files @@ -150,7 +150,7 @@ if (pledge("stdio rpath wpath cpath tmppath fattr", NULL) == -1) { perror("pledge"); - exit(1); + my_exit(2); } setvbuf(stdout, NULL, _IOLBF, 0);