[torqueusers] Re: Fedora Core 2 (linux) and Torque Interactive Jobs - Aha...

David Golden dgolden@cp.dias.ie
Thu, 29 Jul 2004 12:34:20 +0100


--=-hnMoU2aGCM0wGvENBk9D
Content-Type: multipart/mixed; boundary="=-fTHY+bPDq+ZB8kVGnVoq"


--=-fTHY+bPDq+ZB8kVGnVoq
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Tue, 2004-07-27 at 03:15, dgolden@cp.dias.ie wrote:

> Maybe src/resmom/linux/mom_start.c:open_master() needs to be changed to
> use /dev/ptmx on new linux - sounds like support for the "old way" that
> open_master uses is being dropped, and probably not just in RH/Fedora:
>=20

N.B. submitted small patch to help at supercluster dot org to fix
this. Patch also attached here in case it's immediately useful to
anyone else on-list. Patch attached does not retain
backward-compatibility with linux that doesn't have /dev/ptmx , but
AFAIK pretty much all installs would (?)
















--=-fTHY+bPDq+ZB8kVGnVoq
Content-Disposition: attachment; filename=torque-linux-use-ptmx.patch
Content-Type: text/x-patch; name=torque-linux-use-ptmx.patch; charset=UTF-8
Content-Transfer-Encoding: base64

LS0tIHRvcnF1ZS0xLjEuMHAwL3NyYy9yZXNtb20vbGludXgvbW9tX3N0YXJ0LmMJMjAwNC0wNi0w
MiAxOTo1NDo0NS4wMDAwMDAwMDAgKzAxMDANCisrKyB0b3JxdWUtMS4xLjBwMC1wdG14L3NyYy9y
ZXNtb20vbGludXgvbW9tX3N0YXJ0LmMJMjAwNC0wNy0yNyAwNDoxNTozMy4wMDAwMDAwMDAgKzAx
MDANCkBAIC03OCw2ICs3OCw3IEBADQogKi8NCiAjaW5jbHVkZSA8cGJzX2NvbmZpZy5oPiAgIC8q
IHRoZSBtYXN0ZXIgY29uZmlnIGdlbmVyYXRlZCBieSBjb25maWd1cmUgKi8NCiANCisjaW5jbHVk
ZSA8c3RkbGliLmg+IC8qIGZvciB1bml4OTggcHR5IGFwaSBpbiBvcGVuX21hc3RlciAqLw0KICNp
bmNsdWRlIDxzdHJpbmcuaD4NCiAjaW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HsNCi0gICAgICAgIC8qIGdvdCBh
IG1hc3RlciwgZml4IG5hbWUgdG8gbWF0Y2hpbmcgc2xhdmUgKi8NCi0NCi0gICAgICAgIHB0eV9u
YW1lWzVdID0gJ3QnOwkNCi0NCi0gICAgICAgICpydG5fbmFtZSA9IHB0eV9uYW1lOw0KLQ0KKyAg
ICAvKiBnb3QgYSBtYXN0ZXIsIGZpeCBuYW1lIHRvIG1hdGNoaW5nIHNsYXZlICovDQorICAgICAg
IGlmIChncmFudHB0KHB0Yyk8MCB8fCB1bmxvY2twdChwdGMpPDApDQorICAgICAgICAgew0KKyAg
ICAgICAgICAgY2xvc2UocHRjKTsNCisgICAgICAgICAgIHJldHVybigtMSk7DQorICAgICAgICAg
fQ0KKyAgICAgICAqcnRuX25hbWUgPSAoY2hhciAqKSBwdHNuYW1lKHB0Yyk7IC8qIG5ldmVyIHRv
IGJlIGZyZWVkICovDQorICAgICAgIGlmICgqcnRuX25hbWUgPT0gTlVMTCkNCisJICB7DQorICAg
ICAgICAgICAgY2xvc2UocHRjKTsNCisJICAgIHJldHVybigtMSk7DQorICAgICAgICAgIH0NCiAg
ICAgICAgIHJldHVybihwdGMpOw0KLSAgICAgICAgfSANCi0gICAgICBlbHNlIGlmIChlcnJubyA9
PSBFTk9FTlQpDQotICAgICAgICB7DQotICAgICAgICByZXR1cm4oLTEpOwkvKiB0cmllZCBhbGwg
ZW50cmllcywgZ2l2ZSB1cCAqLw0KLSAgICAgICAgfQ0KLSAgICAgIH0NCi0gICAgfQ0KLQ0KLSAg
cmV0dXJuKC0xKTsJLyogdHJpZWQgYWxsIGVudHJpZXMsIGdpdmUgdXAgKi8NCisgICAgIH0gDQor
ICByZXR1cm4oLTEpOwkvKiBnaXZlIHVwICovDQogICB9ICAvKiBFTkQgb3Blbl9tYXN0ZXIoKSAq
Lw0KIA0KIA0K

--=-fTHY+bPDq+ZB8kVGnVoq--

--=-hnMoU2aGCM0wGvENBk9D
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBBCOC71AFnNuhoT4ARArULAJ0ZB637LfnLx2L2dac7RGYj74pa0QCfQBhZ
p8mGSoXKVXTQB0u+GEvkO0U=
=Ux82
-----END PGP SIGNATURE-----

--=-hnMoU2aGCM0wGvENBk9D--