summaryrefslogtreecommitdiff
path: root/usr.bin/mail/cmd2.c
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2009-07-28 16:05:05 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2009-07-28 16:05:05 +0000
commitb3aefef4d3b34da2d7dafc119a3227504997822c (patch)
tree364542e25d07f9be91f1fde000c5ecea2c77df72 /usr.bin/mail/cmd2.c
parentb88e2286c736446e8fef1738dc7ef602f2b3db2b (diff)
remove core / tilde C. it's useless, doesn't work, never has been
documented, ^\ should be used instead. ok millert@
Diffstat (limited to 'usr.bin/mail/cmd2.c')
-rw-r--r--usr.bin/mail/cmd2.c31
1 files changed, 2 insertions, 29 deletions
diff --git a/usr.bin/mail/cmd2.c b/usr.bin/mail/cmd2.c
index 8eaaa029ab3..1637ea475ae 100644
--- a/usr.bin/mail/cmd2.c
+++ b/usr.bin/mail/cmd2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd2.c,v 1.15 2004/09/15 22:21:40 deraadt Exp $ */
+/* $OpenBSD: cmd2.c,v 1.16 2009/07/28 16:05:04 martynas Exp $ */
/* $NetBSD: cmd2.c,v 1.7 1997/05/17 19:55:10 pk Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static const char sccsid[] = "@(#)cmd2.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: cmd2.c,v 1.15 2004/09/15 22:21:40 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: cmd2.c,v 1.16 2009/07/28 16:05:04 martynas Exp $";
#endif
#endif /* not lint */
@@ -346,33 +346,6 @@ undeletecmd(void *v)
}
/*
- * Interactively dump core on "core"
- */
-int
-core(void *v)
-{
- pid_t pid;
- extern int wait_status;
-
- switch (pid = vfork()) {
- case -1:
- warn("vfork");
- return(1);
- case 0:
- abort();
- _exit(1);
- }
- fputs("Okie dokie", stdout);
- fflush(stdout);
- wait_child(pid);
- if (WIFSIGNALED(wait_status) && WCOREDUMP(wait_status))
- puts(" -- Core dumped.");
- else
- puts(" -- Can't dump core.");
- return(0);
-}
-
-/*
* Add the given header fields to the retained list.
* If no arguments, print the current list of retained fields.
*/