FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Laptop

 
 
LinkBack Thread Tools
 
Old 04-06-2011, 08:10 PM
Chris Lumens
 
Default We no longer need to get the PID of init from loader.

---
loader/loader.c | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index db5445b..9e3ab24 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -126,7 +126,6 @@ uint64_t flags = LOADER_FLAGS_SELINUX;
int num_link_checks = 5;
int post_link_sleep = 0;

-static pid_t init_pid = 1;
static int init_sig = SIGUSR1; /* default to shutdown=halt */
static const char *LANG_DEFAULT = "en_US.UTF-8";

@@ -1910,22 +1909,6 @@ int main(int argc, char ** argv) {
isDevelMode = 1;
}

- /* get init PID if we have it */
- if ((f = fopen("/var/run/init.pid", "r")) != NULL) {
- char linebuf[256];
-
- while (fgets(linebuf, sizeof(linebuf), f) != NULL) {
- errno = 0;
- init_pid = strtol(linebuf, NULL, 10);
- if (errno == EINVAL || errno == ERANGE) {
- logMessage(ERROR, "%s (%d): %m", __func__, __LINE__);
- init_pid = 1;
- }
- }
-
- fclose(f);
- }
-
signal(SIGUSR1, loaderUsrXHandler);
signal(SIGUSR2, loaderUsrXHandler);

--
1.7.4.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 06:45 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org