Re: [Vserver] "vserver enter" eating cpu and vkill problem

From: Jarek Dylag <jarek.dylag_at_gmail.com>
Date: Wed 14 Mar 2007 - 12:54:43 GMT
Message-ID: <64a616a10703140554r75aae61emc1d930f401c63da@mail.gmail.com>

Hey

[...]
> Yeah, I know where it happens, but why it happens and how to fix it is
> still a mystery. Thus far, every solution I've tried has failed.
> http://people.linux-vserver.org/~dhozac/p/uv/experimental/delta-vlogin-efds.diff
> has two of the things I've tried to fix it.

I added additional check in termina_copy() functon:

--- vlogin.c.old 2006-12-09 17:15:22.000000000 +0100
+++ vlogin.c 2007-03-14 13:47:13.000000000 +0100
@@ -139,6 +139,11 @@
   } else if (len == -1)
     return;

+ if (len == 0) {
+ terminal_kill(SIGTERM);
+ exit(1);
+ }
+
   /* write activity to user */
   EwriteAll(dst, buf, len);
 }

It fixes the problem, but i don't know if i haven't broken something else.

Jarek Dylag
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Wed Mar 14 13:55:06 2007

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 14 Mar 2007 - 13:55:13 GMT by hypermail 2.1.8