[][src]Function fungus::sys::user::setgid

pub fn setgid(gid: u32) -> FuResult<()>

Set the group ID for the current user.

Examples

use fungus::prelude::*;

assert!(user::setgid(user::getgid()).is_ok());