Bug 169127 - Resurrect a traditional and fun function name
Summary: Resurrect a traditional and fun function name
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-16 01:03 UTC by Ruben de Groot
Modified: 2012-09-12 12:03 UTC (History)
0 users

See Also:


Attachments
file.diff (678 bytes, patch)
2012-06-16 01:03 UTC, Ruben de Groot
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ruben de Groot 2012-06-16 01:03:28 UTC
Just the other day, while showing a younger colleague his way around the FreeBSD source tree, I wanted to show him the cool "die_you_gravy_sucking_pig_dog" funtion, as an example how coding can be fun.

Regretfully I found this function is no longer in the shutdown.c source. It has apparently been removed in an otherwise very unsubstantial commit (Revision 1.30, Tue Dec 29 08:49:43 2009)

I don't think the function name was moronic. It's historic and deserves to be in the source tree. Therefore I propose to return to the original funtion name, keeping the funtional changes (void) made in that commit.

Fix: patch attached

Patch attached with submission follows:
How-To-Repeat: 1) have a little sense of humor
2) read shutdown.c before Tue Dec 29 08:49:43 2009
3) read shutdown.c after Tue Dec 29 08:49:43 2009
Comment 1 John Baldwin freebsd_committer freebsd_triage 2012-07-30 13:18:28 UTC
While it is true that the original function name goes back to BSD (and
predates FreeBSD), I'm not sure it is worth renaming it back.

-- 
John Baldwin
Comment 2 John Baldwin freebsd_committer freebsd_triage 2012-07-30 13:18:41 UTC
Responsible Changed
From-To: freebsd-advocacy->freebsd-bugs

Not an advocacy PR.
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-08-01 10:10:33 UTC
Author: des
Date: Wed Aug  1 09:10:21 2012
New Revision: 238968
URL: http://svn.freebsd.org/changeset/base/238968

Log:
  Restore a piece of BSD history.
  
  PR:		169127
  Submitted by:	Ruben de Groot <ruben@hacktor.com>
  MFC after:	1 week

Modified:
  head/sbin/shutdown/shutdown.c

Modified: head/sbin/shutdown/shutdown.c
==============================================================================
--- head/sbin/shutdown/shutdown.c	Wed Aug  1 09:00:26 2012	(r238967)
+++ head/sbin/shutdown/shutdown.c	Wed Aug  1 09:10:21 2012	(r238968)
@@ -93,7 +93,7 @@ static char mbuf[BUFSIZ];
 static const char *nosync, *whom;
 
 static void badtime(void);
-static void perform_shutdown(void);
+static void die_you_gravy_sucking_pig_dog(void);
 static void finish(int);
 static void getoffset(char *);
 static void loop(void);
@@ -282,7 +282,7 @@ loop(void)
 		if (!tp->timeleft)
 			break;
 	}
-	perform_shutdown();
+	die_you_gravy_sucking_pig_dog();
 }
 
 static jmp_buf alarmbuf;
@@ -349,7 +349,7 @@ timeout(int signo __unused)
 }
 
 static void
-perform_shutdown(void)
+die_you_gravy_sucking_pig_dog(void)
 {
 	char *empty_environ[] = { NULL };
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 4 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2012-09-12 12:03:27 UTC
State Changed
From-To: open->closed

Committed, thanks!