• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: while (1) { dashboard();}
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: while (1) { dashboard();}


  • Subject: Re: while (1) { dashboard();}
  • From: Andrew Gallatin <email@hidden>
  • Date: Thu, 5 May 2005 09:05:09 -0400 (EDT)

Ian Lister writes:
 >
 > Thankfully the Darwin source releases have been very punctual for some
 > time now (thanks Kevin!) so for each OS update I build a custom kernel
 > with CHILD_MAX (xnu/bsd/sys/syslimits.h) increased from 100 to 500 and
 > hack in a "ulimit -u" invocation in /etc/rc or somewhere (there being no
 > login.conf or the like to be able to set it for login sessions).
 >

Doesn't that just change the default rlim_cur?

BTW, does anybody know if it is possible to patch values into
executables with GDB?  On old, closed-source systems, you used
to be able to do:
   # dbx -k /vmunix /dev/mem
   (dbx) patch maxproc=8192
   8192
   (dbx)

This would make the value stick after reboot.

If you could do this in macosx, you could avoid having to rebuild the
kernel yourself.  I copied the kernel to /tmp, and tried gdb -write
/tmp/mach_kernel, but it didn't want to let me write it:

(gdb) p ((int *) &maxproc)[0]
$1 = 532
(gdb) set ((int *) &maxproc)[0] = (1024 + 20)
Cannot access memory at address 0x37ca10


Drew
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >while (1) { dashboard();} (From: Stephane Sudre <email@hidden>)
 >Re: while (1) { dashboard();} (From: Ian Lister <email@hidden>)

  • Prev by Date: Re: writing a new GUI environment
  • Next by Date: Re: calling open() on an older cd device returns EBUSY??
  • Previous by thread: Re: while (1) { dashboard();}
  • Next by thread: Re: Darwin 8.0 Source Code Available
  • Index(es):
    • Date
    • Thread