public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
From: Tommy McCabe <rocketjet314@yahoo.com>
To: linux-8086@vger.kernel.org
Subject: Re: Huh?? [PATCH]
Date: Mon, 19 Jul 2004 18:58:04 -0700 (PDT)	[thread overview]
Message-ID: <20040720015804.29565.qmail@web51301.mail.yahoo.com> (raw)
In-Reply-To: <20040720013827.95321.qmail@web51306.mail.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 1028 bytes --]

--- Tommy McCabe <rocketjet314@yahoo.com> wrote:
> What the heck is if ((num = sys_execve("/bin/init",
> args, 18))) supposed to mean? num is an
> uninitialized
> variable which could equal anything.
> 

I found out what it means- it's supposed to set num
equal to sys_execve and then evaluate if that
statement is equal to 0. This, for some reason, is
compiled wrong and causes ELKS to hang at "Loading
init" at boot. The patch not only makes the intent
clearer but fixes the error.

> 		
> __________________________________
> Do you Yahoo!?
> Vote for the stars of Yahoo!'s next ad campaign!
>
http://advision.webevents.yahoo.com/yahoo/votelifeengine/
> 
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-8086" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html
> 


		
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: init.diff --]
[-- Type: text/x-diff; name="init.diff", Size: 409 bytes --]

--- ./elkscomp/elks/init/main.c	2004-05-31 09:49:25.000000000 -0400
+++ ./elkscurr/elks/init/main.c	2004-07-19 21:44:20.000000000 -0400
@@ -98,8 +98,11 @@
     mount_root();
 
     printk("Loading init\n");
-
-    if ((num = sys_execve("/bin/init", args, 18))) {
+    
+    num = sys_execve("/bin/init", args, 18);
+    
+    if (num != 0) 
+	{
 
 	printk("sys_execve(\"/bin/init\",args,18) => %d.\n",num);
 

  reply	other threads:[~2004-07-20  1:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-20  1:38 Huh?? Tommy McCabe
2004-07-20  1:58 ` Tommy McCabe [this message]
2004-07-20 15:18   ` Huh?? [PATCH] Eduardo Pereira Habkost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040720015804.29565.qmail@web51301.mail.yahoo.com \
    --to=rocketjet314@yahoo.com \
    --cc=linux-8086@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox