pbs_disconnect(3B)

πŸ“¦ version 23.06.06-unstable-2026-04, in nixos 26.05, nixpkgs unstable

🌸 pbs_disconnect β€” the PBS Professional girlie's guide to logging off 🌸

okay so bestie, you've been chatting with a PBS batch server this whole time, and now it's time to say bye πŸ‘‹ β€” this is the pbs_disconnect(3B) page from PBS Professional, and it's literally the "close the tab" of the batch world.


πŸŽ€ NAME πŸŽ€

pbs_disconnect β€” disconnect from a PBS batch server. that's it, that's the vibe πŸ’…


✨ SYNOPSIS ✨

#include <pbs_error.h>
#include <pbs_ifl.h>

int pbs_disconnect(int connect)

πŸ’– DESCRIPTION πŸ’–

It closes the virtual stream connection to a PBS batch server. the connection you're closing? it was previously returned from a call to pbs_connect(). so like, you can't just close any random thing β€” this is your connection, the one pbs_connect() handed you earlier. no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • connect β€” the connection to be closed. it's the return value of pbs_connect(), and it specifies the connection you used earlier to send batch requests to the server. so yeah, the exact one you opened. don't get it twisted πŸ™ˆ

⭐ RETURN VALUE ⭐

The routine returns 0 (zero) after successfully closing the connection. slay, clean exit, we love to see it πŸ‘‘

If an error occurred, the routine returns -1, and the error number is available in the global integer pbs_errno. so if it hits you with that -1, go check pbs_errno β€” that's where the tea is 🍡

ngl, pbs_errno is a global, so it's giving "everyone in the group chat can see it" energy. check it right after the call, bestie πŸ’€

🌈 SEE ALSO 🌈

  • pbs_connect(3B) β€” the one that started it all, the connection origin story 🧚

k that's the whole page, mwah πŸ’œ

source/version: Local, dated 15 November 2019 β€” PBS Professional, and this little rewrite is officially signed off βœ¨πŸŽ€πŸ’–

πŸ“¦ where this page comes from