[torqueusers] Patch for 1.1.0p3 on Fedora Core 2 + udev
jacksond at supercluster.org
Tue Oct 26 10:56:56 MDT 2004
Thanks for the patch. It has been rolled into the pre-patch 4
snapshot but is currently #ifdef'd out. To enable it, build
linux/mom_start.c with '__PNEWTTY' defined. As you know, this is libc5+
and glibc2+ compliant so it should work on most systems. If we can get
a number of sites where this compliance is questionable to enable this
and verify proper operation, we can set it up to be enabled by default.
Again, thanks for the contribution.
On Mon, 2004-10-25 at 15:04, David C. Thompson wrote:
> I've attached a patch to src/resmom/linux/mom_start.c that I
> needed to make tty allocation on the MOMs work with udev on top of a
> Fedora Core 2 install. By default, udev doesn't create
> /dev/pty[p-z][0-9a-f] devices. Instead, it creates /dev/ptmx and lets
> the devpts filesystem create the matching ttys when ptmx is opened.
> Rather than try to detect which particular devices
> (pty[p-z][0-9a-f], ptc, ptmx, ...) exist on a given system, openpty()
> may be used. That's what the patch does. The only problem is that it
> adds an extra library dependency to pbs_mom: libutil contains the
> openpty() symbol.
> Anyway, it works for me, so I thought I would share it with the
> Thanks for torque,
> PS. Apologies if you get this twice; I sent a copy before I subscribed
> to the list and so far as I can tell, it went into a black hole.
More information about the torqueusers