pbs_disconnect(3B)
πΈ 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 ofpbs_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
- nixos 26.05: openpbs 23.06.06-unstable-2026-04-02
- nixpkgs unstable: openpbs 23.06.06-unstable-2026-04-02
- Copyright (C) 1994-2021 Altair Engineering, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms