Re: mach_host_self() doesn't acquire new port name?!

2001-05-06 Thread Marcus Brinkmann
On Sun, May 06, 2001 at 10:04:12PM -0400, Roland McGrath wrote: > > Now, we actually leak all these urefs (for example, when calling > > gettimeofday). Even for a process calling mach_host_self() 1000 times a > > second it would take 50 days to overflow. For purity, should we deallocate > > the po

Re: mach_host_self() doesn't acquire new port name?!

2001-05-06 Thread Roland McGrath
> Now, we actually leak all these urefs (for example, when calling > gettimeofday). Even for a process calling mach_host_self() 1000 times a > second it would take 50 days to overflow. For purity, should we deallocate > the port? Overflow is set to TRUE in this code path, so it might > be okay to

Re: mach_host_self() doesn't acquire new port name?!

2001-05-06 Thread Marcus Brinkmann
On Sun, May 06, 2001 at 08:33:56PM -0400, Roland McGrath wrote: > > So is it true that port 23 (in my case above) is the host name port for all > > tasks of the system? It must be, as realport.host_self is a global, and it > > is passwd through as the mach port (although it is an ipc_port_t). > >

Re: mach_host_self() doesn't acquire new port name?!

2001-05-06 Thread Roland McGrath
> Well, it seems that mach_host_self() is rather special in that it refers to > a kernel object (port in the kernel name space) rather than an object from > another user task. Ports is ports. > I didn't expect it to just increase the uref and return the port number, > as I don't own the receive

Re: mach_host_self() doesn't acquire new port name?!

2001-05-06 Thread Marcus Brinkmann
On Sun, May 06, 2001 at 04:46:45PM -0400, Roland McGrath wrote: > > I don't understand why mach_host_self() doesn't acquire a new port name and > > leaks a port if not deallocated. In other words, I expected the following to > > leak ports, but it doesn't: > > > > main () > > { > > while (1) >

Re: kernel command line

2001-05-06 Thread Roland McGrath
> Makes perfect sense. Looking at the output of ps to get the kernel command > line is a natural thing to do, and much better than /proc/cmdline indeed. > I don't see any explicit need for a fancier programmable interface either. Well, I'm not entirely sanguine about the "PID 2 is the kernel" co

Re: mach_host_self() doesn't acquire new port name?!

2001-05-06 Thread Roland McGrath
> I don't understand why mach_host_self() doesn't acquire a new port name and > leaks a port if not deallocated. In other words, I expected the following to > leak ports, but it doesn't: > > main () > { > while (1) > mach_host_self(); /* Returns 23 on each and every call. */ > } I don't kn

Re: extant send rights

2001-05-06 Thread Roland McGrath
> why is mach_port_get_receive_status just returning a boolean if send right > exists (the mach code has the equivalent of "srights = ip_srights > 0"), but > the exact number of extant send once rights, while there is a special debug > call mach_port_get_srights to get the exact number? This is a

¸ñ·Ï

2001-05-06 Thread hfgh35673
¿©·¯ºÐ¿¡°Ô °¡Àå ÇÊ¿äÇϰí À¯ÀÍÇÑ ÄÄÇ»ÅÍ °ü·ÃÇÁ·Î±×·¥À» ÆÄ°ÝÀûÀ¸·Î ½Ñ °¡°Ý¿¡ °ø±ÞÇÕ´Ï´Ù ÃֽŰÔÀÓ. À¯Æ¿°ü·ÃÇÁ·Î±×·¥. MP3. ºñµð¿À½Ãµð µîµî ¸ðµç ÇÁ·Î±×·¥À» ÆÇ¸ÅÇÕ´Ï´Ù ¹°·Ð ½Å¿ë °ÆÁ¤À» ÀüÇô ½Å°æ¾²Áö ¸¶½Ê½Ã¿ä ¾ÐÃàÈ­ÀϼÓÀÇ ³»¿ëÀ» º¸½ÅÈÄ ÀüÈ­³ª ¸ÞÀÏ·Î ¿¬¶ôÁֽʽÿä ÀÌ ¸ÞÀÏÀ» º¸³½ ¾ÆÀ̵ð·Î´Â ¿¬¶ôÀÌ µÇÁö ¾

Re: kernel command line

2001-05-06 Thread Marcus Brinkmann
On Sat, May 05, 2001 at 08:22:42PM -0400, Roland McGrath wrote: > The simplest kludge is to just use "ps --fmt=%command 2" or the libps > equivalent thereof. PID 2 is always the kernel task, and the existing init > hack diddles things so that the kernel command line appears like a normal > proces

mach_host_self() doesn't acquire new port name?!

2001-05-06 Thread Marcus Brinkmann
Hi, I don't understand why mach_host_self() doesn't acquire a new port name and leaks a port if not deallocated. In other words, I expected the following to leak ports, but it doesn't: main () { while (1) mach_host_self(); /* Returns 23 on each and every call. */ } mach_task_self is cac

extant send rights

2001-05-06 Thread Marcus Brinkmann
Hi, why is mach_port_get_receive_status just returning a boolean if send right exists (the mach code has the equivalent of "srights = ip_srights > 0"), but the exact number of extant send once rights, while there is a special debug call mach_port_get_srights to get the exact number? Just wonderi

Re: PPP: uu_lock()

2001-05-06 Thread Roland McGrath
Figure out what lock file name it is actually trying to use. It is probably trying to use a file name in a nonexistent directory. ___ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd

PPP: uu_lock()

2001-05-06 Thread Daniel E Baumann
I disabled the gateway setting code in PPP in hopes of getting it to dial in and this is what I got (from /var/log/syslog): y 6 00:39:51 localhost ppp[7087]: Phase: Using interface: tun0 May 6 00:39:51 localhost ppp[7087]: Phase: deflink: Created in closed state May 6 00:39:51 localhost ppp[70